// vue.config.js
module.exports = {
    configureWebpack:{
        externals: {
            "pdfjs-dist": "pdfjs-dist",
            "vue": "Vue"
        }
    },
    chainWebpack: config => {
        config.module
            .rule("worker")
            .test(/\.worker\.js$/)
            .use("worker-loader")
                .loader("worker-loader")
                .end()
    }
}
